def city_country(cities,country="china"):
    for city in cities:
        out = city.title()+","+country.title()
        print(out)
allcities = ['sichuan','wuhan','beijing']
city_country(allcities)
def make_album(name,album_name,num=''):
    if num != '':
        music = {"名字":name,"专辑名":album_name,"歌曲数":num}
        return music
    else:
        music = {"名字": name, "专辑名": album_name}
        return music
album1 = make_album("许飞","父亲写的散文诗","1")
print(album1)
album2 = make_album("吴尊","当你走了")
print(album2)
album3 = make_album("刘若英","我等你","11")
print(album3)
def make_album_2(name,album_name):
    music = {"歌手": name, "专辑名": album_name}
    return music
msg1 = "歌手名字："
msg2 = "专辑名字："
msg3 = "Anyelse?(yes/no)"
musics = []
while True:
    name = input(msg1)
    album_name = input(msg2)
    musics.append(make_album_2(name,album_name))
    info = input(msg3)
    if info == 'no':
        break;
    else:
        continue
print(musics)